/* global axios */
import ApiClient from './ApiClient'

class CustomViewsAPI extends ApiClient {
  constructor () {
    super('customFilters', { accountScoped: true })
  }

  getCustomViewsByFilterType (type) {
    return axios.get(`${this.url}?filterType=${type}`)
  }

  deleteCustomViews (id, type) {
    return axios.delete(`${this.url}/${id}?filterType=${type}`)
  }
}

export default new CustomViewsAPI()
